package L619;

import java.util.ArrayList;

/**
 * @program: javase
 * @description:
 * @author: luolidong
 * @create: 2021-06-19 20:33
 * @version: 1.0
 */
public class UserTest {
    public static void main(String[] args) {
        ArrayList<User> users = new ArrayList<>();
        users.add(new User(1, "1"));
        User user = new User(2, "2");
        users.add(user);
        System.out.println("users.contains(new User(2, \"2\")) = " + users.contains(user));
    }
}
